define(function(require, exports){
	//财务中心
	exports.onMain= function(boot,data,app){
		if (!app.routerValid('admin.bill')) {
			return;
		}

		var title = LANG('财务中心');

		var con = app.getContainer({
			scenes: 'main',
			full: false,
			sitelist: false,
			setup_btn: false,
			title:title,
			type: 'sidebar'
		});

		con.createBusiness(data.name  + '_bar', 'layout/navbar.base', {
			'contentType': 'info',
			'autoBuild': true,
			'data': data,
			'addTitle': title,
			'type': 'admin'
		}, function(mod, created){
			if(mod){
				mod.setData(data, title);
			}
		});

		con.createBusiness(data.name, 'admin/financeCenter/action/financeDetail.main', function(mod, noFirst){
			if(noFirst){
				mod.reload();
			}else{
				mod.load()
			}
		});
	};
});